﻿using INTEX.SCHEDULER;
using System;
using System.ComponentModel;
using System.Windows.Media;
namespace WPFExcelReport
{
    /// <summary>
    /// Interaction logic for Machine.xaml
    /// </summary>

    public partial class FFJobBar
    {
        public FFJobBar()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            InitializeComponent();
            MinPixes = 120;
            ProductionType = "F";
        }
        public override void LOADBYAUF()
        {
            base.LOADBYAUF();

        }
        public override void JobFace()
        {
            base.JobFace();

        }
        public override void ColorDef()
        {
            int v = int.Parse(TMV.JP06);
            if (v == 0)
                v = 1;
            byte c = byte.Parse((Math.Round(System.Convert.ToDouble(255 / v), 0)).ToString());
            TMV.JobColor = Color.FromRgb(c, c, c);
            //  base.ColorDef();
        }
    }
}
